package com.fpost.security;

public interface SecurityHelper {
    //constructor to load the profile of the user into an in memory data structure
    //public SecurityHelper(String userId);
    
    //method to check page level access 
    public boolean isAccessAllowed(String uri);
    
    //method to check if the attribute can be viewed by the user
    public boolean isViewableField(String page, String attribute);
    
    //method to check if the attribute can be edited by the user
    public boolean isEditableField(String page, String attribute);
    
    //method to refresh the cached user roles if there is some change
    public void refreshCache();
}
